import https from '../../https';
import type { NoticeModel,NoticePageParm } from './NoticeModel';
export const addApi = (parm:NoticeModel) =>{
    return https.post("/api/sysNotice/add",parm)
}
export const editApi = (parm:NoticeModel) =>{
    return https.put("/api/sysNotice/edit",parm)
}
export const getListApi = (parm:NoticePageParm)=>{
    return https.get("/api/sysNotice/list",parm)
}
export const deleteApi = (noticeId:string) =>{
    return https.delete(`/api/sysNotice/${noticeId}`)
}